function requisicaoHTTP(a,b,c,d){qual=d,window.XMLHttpRequest?ajax=new XMLHttpRequest:window.ActiveXObject&&(ajax=new ActiveXObject("Msxml2.XMLHTTP"),ajax||(ajax=new ActiveXObject("Microsoft.XMLHTTP"))),ajax?iniciaRequisicao(a,b,c):alert("Seu navegador não possui suporte a essa aplicação!")}function iniciaRequisicao(a,b,c){ajax.onreadystatechange=trataResposta,ajax.open(a,b,c),ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),ajax.send(dadosUsuario)}function trataResposta(){4==ajax.readyState&&200==ajax.status&&(1==qual&&trataDados(),2==qual&&trataDadosLoginVerifica(),3==qual&&trataDadosPlacaVerifica(),4==qual&&trataDadosEnquete())}function tempoEsgotado(){ajax.abort()}function criarDiv(a,b){var c=document.createElement("div");c.className=b,c.setAttribute("id",a),document.body.appendChild(c)}function calcularPosJanela(a,b){for(var c=0;a;)c+=a[b],a=a.offsetParent;return c}function acaoMenu(a,b){a?document.getElementById(b).style.display="block":document.getElementById(b).style.display="none"}function fecharMenus(a){var b=[];b[b.length]="menuFretes",b[b.length]="menuEmpresas",b[b.length]="menuVeiculos";for(var c=0;c
Confirme o seu idioma / Confirme su idioma
Português   /   Español
"}$("#divAlert").hide().fadeIn("slow")}function scroolId(a){$("html, body").animate({scrollTop:$("#"+a).offset().top},1e3)}function fade(a,b,c){null===c&&(c=.9),b?$("#"+a).fadeTo(0,c):$("#"+a).fadeTo(0,1)}function checkObj(a){var b=document.getElementById(a);b.checked?b.checked="":b.checked="checked"}function placeHolderImg(a,b,c,d){b?(a.style.backgroundImage="",a.style.backgroundPosition=""):""==a.value?(a.style.backgroundImage=c,a.style.backgroundPosition=d):(a.style.backgroundImage="",a.style.backgroundPosition="")}function confirmaUrl(a,b){window.confirm(a)&&(window.location=b)}function statusForm(a,b){b&&$(a).length>0?$(a).bind("onsubmit",function(){return!0}):$(a).bind("onsubmit",function(){return alert("erro"),!1})}function geraUrlFretesLocalizacao(a,b,c,d,e){var f="",g="",h="",i="",j="";$(b).length>0&&(f=b.options[b.selectedIndex].value.toLowerCase()),$(c).length>0&&(g=c.options[c.selectedIndex].value),$(d).length>0&&(h=d.options[d.selectedIndex].value.toLowerCase()),$(e).length>0&&(i=e.options[e.selectedIndex].value),arrCidadeO=g.split("-"),arrCidadeD=i.split("-"),arrCidadeO[arrCidadeO.length-1]!=f&&(g=""),arrCidadeD[arrCidadeD.length-1]!=h&&(i=""),("sudeste"==h||"centro-oeste"==h||"sul"==h||"norte"==h||"nordeste"==h)&&(j=h,h="");var k="";return""!=f&&""!=g&&""!=h&&""!=i?k="carga-de-"+g+"-para-"+i:""!=f&&""==g&&""!=h&&""==i?k="carga-de-"+f+"-para-"+h:""!=f&&""==g&&""!=j&&""==i?k="carga-de-"+f+"-para-regiao-"+j:""!=f&&""!=g&&""!=h&&""==i?k="carga-de-"+g+"-para-"+h:""!=f&&""==g&&""!=h&&""!=i?k="carga-de-"+f+"-para-"+i:""!=f&&""!=g&&""!=j&&""==i?k="carga-de-"+g+"-para-regiao-"+j:""!=f&&""!=g?k="carga-de-"+g:""!=f&&""==g?k="carga-de-"+f:""!=j&&""==g?k="carga-para-regiao-"+j:""!=h&&""!=i?k="carga-para-"+i:""!=h&&""==i&&(k="carga-para-"+h),a=""!=a&&""!=k?a.replace("[[LOCAL]]",k):a.replace("[[LOCAL]]/","")}function geraUrlEmpresasVeiculosLocalizacao(a,b,c){var d="",e="";$(b).length>0&&(d=b.options[b.selectedIndex].value.toLowerCase()),$(c).length>0&&(e=c.options[c.selectedIndex].value),arrCidadeO=e.split("-"),arrCidadeO[arrCidadeO.length-1]!=d&&(e="");var f="";if(""!=d&&""==e?f="estado-"+d:""!=d&&""!=e&&(f="cidade-"+e),a=""!=a&&""!=f?a.replace("[[LOCAL]]",f):a.replace("[[LOCAL]]/",""),e)if(a.indexOf("/raio-")>-1);else{var g=a.indexOf(e),h=e.length,i=g+h;a=a.substr(0,i)+"/raio-50km"+a.substr(i)}return a}function fretesFiltrarRaioLocalizacaoMenu(){var a=document.getElementById("busca_fretes_ref_uf"),b=document.getElementById("busca_fretes_ref_cidade"),c=document.getElementById("busca_fretes_ref_raio"),d=geraUrlFretesLocalizacao("/fretes/[[LOCAL]]/",a,b,null,null);""!=b.options[b.selectedIndex].value&&""!=c.value&&(d+="raio-"+c.value+"km/"),window.location=d}function fretesFiltrarLocalizacaoMenu(){var a=document.getElementById("busca_fretes_origem_uf"),b=document.getElementById("busca_fretes_origem_cidade"),c=document.getElementById("busca_fretes_destino_uf"),d=document.getElementById("busca_fretes_destino_cidade"),e=geraUrlFretesLocalizacao("/fretes/[[LOCAL]]/",a,b,c,d);window.location=e}function fretesFiltrarLocalizacao(a){a=base64_decode(a);var b=document.getElementById("fretes_btn"),c=document.getElementById("divBtn"),d=document.getElementById("FormFiltros"),e=document.getElementById("fretes_origem_uf"),f=document.getElementById("fretes_origem_cidade"),g=document.getElementById("fretes_destino_uf"),h=document.getElementById("fretes_destino_cidade");document.getElementById("filtro");a=geraUrlFretesLocalizacao(a,e,f,g,h),a=a.replace("[[LOCAL]]/",""),window.location=a,c.style.display="block",b.onclick=function(){window.location=a},d.onsubmit=function(){return window.location=a,!1}}function empresasFiltrarRaioLocalizacaoMenu(){var a=document.getElementById("busca_empresas_ref_uf"),b=document.getElementById("busca_empresas_ref_cidade"),c=document.getElementById("busca_empresas_ref_raio"),d=geraUrlEmpresasVeiculosLocalizacao("/empresas/[[LOCAL]]/",a,b);""!=b.options[b.selectedIndex].value&&""!=c.value&&(d+="raio-"+c.value+"km/"),window.location=d}function empresasFiltrarLocalizacao(a){a=base64_decode(a);var b=document.getElementById("empresas_origem_btn"),c=document.getElementById("divOrigemBtn"),d=document.getElementById("FormFiltros"),e=document.getElementById("empresas_origem_uf"),f=document.getElementById("empresas_origem_cidade");a=geraUrlEmpresasVeiculosLocalizacao(a,e,f),a=a.replace("[[LOCAL]]/",""),window.location=a,c.style.display="block",b.onclick=function(){window.location=a},d.onsubmit=function(){return window.location=a,!1}}function empresasFiltrarPalavra(a,b,c,d){var e="";"menu"==d?e="#busca_empresas_palavra":($("#divPalavraBtn").show(),e="#empresas_palavra");var f=formataBusca($(e).val(),b),g=window.event?event.keyCode:a.which;""==f||13!=g&&!c||(window.location=b+f+".html")}function empresasFiltrarUf(a){var a=base64_decode(a);window.location=formataUrl(a)}function empresasFiltrarCidade(a){var a=base64_decode(a);window.location=formataUrl(a)}function formataUrl(a){var b=document.getElementById("empresas_origem_uf").value,c=document.getElementById("empresas_origem_cidade").value,d=document.getElementById("empresas_ramo").value,e=document.getElementById("empresas_setor"),f=e?e.value:"",g=document.getElementById("empresas_atividade"),h=g?g.value:"";if(d&&!b&&!f&&!h){var i=a.replace("[[local]]","ramo-"+d),j=i.replace("[[local]]","");return j}if(b&&!d){var i=a.replace("[[local]]","estado-"+b);if(c)var i=a.replace("[[local]]","cidade-"+c);var j=i.replace("[[local]]","");return j}if(b&&d&&!f){var i=a.replace("[[local]]","ramo-"+d);if(c){var j=i.replace("[[local]]","cidade-"+c);return j}var j=i.replace("[[local]]","estado-"+b);return j}if(b&&d&&f&&!h){var i=a.replace("[[local]]","ramo-"+f),j=i.replace("[[local]]","estado-"+b);if(c){var j=i.replace("[[local]]","cidade-"+c);return j}return j}if(b&&d&&h&&!f){var i=a.replace("[[local]]","ramo-"+h);if(c){var j=i.replace("[[local]]","cidade-"+c);return j}var j=i.replace("[[local]]","estado-"+b);return j}if(!b&&d&&f&&!h){var i=a.replace("[[local]]","ramo-"+f),j=i.replace("[[local]]","");return j}if(!b&&d&&f&&h){var k=f+"-"+h,l=k.split("-"),m=uniq(l),n=m.join("-"),i=a.replace("[[local]]","ramo-"+n),j=i.replace("[[local]]","");return j}if(b&&d&&f&&h){var k=f+"-"+h,l=k.split("-"),m=uniq(l),n=m.join("-"),i=a.replace("[[local]]","ramo-"+n);if(c){var j=i.replace("[[local]]","cidade-"+c);return j}var j=i.replace("[[local]]","estado-"+b);return j}if(b&&c&&d&&!f&&h){var i=a.replace("[[local]]","ramo-"+h),j=i.replace("[[local]]","cidade-"+c);return j}if(b&&c&&d&&f&&!h){var i=a.replace("[[local]]","ramo-"+f),j=i.replace("[[local]]","cidade-"+c);return j}if(b&&c&&d&&!f&&!h){var i=a.replace("[[local]]","ramo-"+d),j=i.replace("[[local]]","cidade-"+c);return j}}function empresasFiltrarRamo(a){var a=base64_decode(a),b=document.getElementById("empresas_ramo").value;return b?void(window.location=formataUrl(a)):(url2=a.replace("[[local]]/",""),url3=url2.replace("[[local]]/",""),void(window.location=url3))}function empresasFiltrarSetor(a){var a=base64_decode(a),b=document.getElementById("empresas_setor").value,c=document.getElementById("empresas_atividade").value;if(!b){var d=document.getElementById("empresas_ramo").value,e="ramo-"+d;if(c)var e="ramo-"+c;return url2=a.replace("[[local]]/",e),url3=url2.replace("[[local]]",""),void(window.location=url3)}window.location=formataUrl(a)}function empresasFiltrarAtividade(a){var a=base64_decode(a),b=document.getElementById("empresas_setor").value,c=document.getElementById("empresas_atividade").value;if(!c){var d=document.getElementById("empresas_ramo").value,e="ramo-"+d;if(b)var e="ramo-"+b;return url2=a.replace("[[local]]/",e),url3=url2.replace("[[local]]",""),void(window.location=url3)}window.location=formataUrl(a)}function veiculosFiltrarRaioLocalizacaoMenu(){var a=document.getElementById("busca_veiculos_ref_uf"),b=document.getElementById("busca_veiculos_ref_cidade"),c=document.getElementById("busca_veiculos_ref_raio"),d=geraUrlEmpresasVeiculosLocalizacao("/veiculos/[[LOCAL]]/",a,b);""!=b.options[b.selectedIndex].value&&""!=c.value&&(d+="raio-"+c.value+"km/"),window.location=d}function veiculosFiltrarLocalizacao(a){a=base64_decode(a);var b=document.getElementById("veiculos_origem_btn"),c=document.getElementById("divOrigemBtn"),d=document.getElementById("FormFiltros"),e=document.getElementById("veiculos_origem_uf"),f=document.getElementById("veiculos_origem_cidade");a=geraUrlEmpresasVeiculosLocalizacao(a,e,f),a=a.replace("[[LOCAL]]/",""),window.location=a,c.style.display="block",b.onclick=function(){window.location=a},d.onsubmit=function(){return window.location=a,!1}}function veiculosFiltrarPalavra(a,b,c,d){var e="";"menu"==d?e="#busca_veiculos_palavra":($("#divPalavraBtn").show(),e="#veiculos_palavra");var f=formataBusca($(e).val(),b),g=window.event?event.keyCode:a.which;""==f||13!=g&&!c||(window.location=b+f+".html")}function formataBusca(a,b){return a=preg_replace("/[^a-zA-ZÀ-ú0-9-.&]/","",strtr(a,"()/ ","----")),a=a.replace("&",",e,"),a=a.replace(".",",dot,"),a=a.replace(".",",dot,"),a=a.toLowerCase(),a=trim(a,"-")}function preg_replace(pattern,replacement,subject,limit){if("undefined"==typeof limit&&(limit=-1),subject.match(eval(pattern))){if(-1==limit)return subject.replace(eval(pattern+"g"),replacement);for(x=0;x',monta_swf+='',monta_swf+='',""!=f&&(monta_swf+=''),monta_swf+='',monta_swf+='',monta_swf+="",document.write(monta_swf)}function calculaPosicao(a,b){for(var c=0;a;)c+=a[b],a=a.offsetParent;return c}function md5(a){var b,c,d,e,f,g,h,i,j,k,l=function(a,b){return a<>>32-b},m=function(a,b){var c,d,e,f,g;return e=2147483648&a,f=2147483648&b,c=1073741824&a,d=1073741824&b,g=(1073741823&a)+(1073741823&b),c&d?2147483648^g^e^f:c|d?1073741824&g?3221225472^g^e^f:1073741824^g^e^f:g^e^f},n=function(a,b,c){return a&b|~a&c},o=function(a,b,c){return a&c|b&~c},p=function(a,b,c){return a^b^c},q=function(a,b,c){return b^(a|~c)},r=function(a,b,c,d,e,f,g){return a=m(a,m(m(n(b,c,d),e),g)),m(l(a,f),b)},s=function(a,b,c,d,e,f,g){return a=m(a,m(m(o(b,c,d),e),g)),m(l(a,f),b)},t=function(a,b,c,d,e,f,g){return a=m(a,m(m(p(b,c,d),e),g)),m(l(a,f),b)},u=function(a,b,c,d,e,f,g){return a=m(a,m(m(q(b,c,d),e),g)),m(l(a,f),b)},v=function(a){for(var b,c=a.length,d=c+8,e=(d-d%64)/64,f=16*(e+1),g=new Array(f-1),h=0,i=0;c>i;)b=(i-i%4)/4,h=i%4*8,g[b]=g[b]|a.charCodeAt(i)<>>29,g},w=function(a){var b,c,d="",e="";for(c=0;3>=c;c++)b=a>>>8*c&255,e="0"+b.toString(16),d+=e.substr(e.length-2,2);return d},x=[],y=7,z=12,A=17,B=22,C=5,D=9,E=14,F=20,G=4,H=11,I=16,J=23,K=6,L=10,M=15,N=21;for(a=this.utf8_encode(a),x=v(a),h=1732584193,i=4023233417,j=2562383102,k=271733878,b=x.length,c=0;b>c;c+=16)d=h,e=i,f=j,g=k,h=r(h,i,j,k,x[c+0],y,3614090360),k=r(k,h,i,j,x[c+1],z,3905402710),j=r(j,k,h,i,x[c+2],A,606105819),i=r(i,j,k,h,x[c+3],B,3250441966),h=r(h,i,j,k,x[c+4],y,4118548399),k=r(k,h,i,j,x[c+5],z,1200080426),j=r(j,k,h,i,x[c+6],A,2821735955),i=r(i,j,k,h,x[c+7],B,4249261313),h=r(h,i,j,k,x[c+8],y,1770035416),k=r(k,h,i,j,x[c+9],z,2336552879),j=r(j,k,h,i,x[c+10],A,4294925233),i=r(i,j,k,h,x[c+11],B,2304563134),h=r(h,i,j,k,x[c+12],y,1804603682),k=r(k,h,i,j,x[c+13],z,4254626195),j=r(j,k,h,i,x[c+14],A,2792965006),i=r(i,j,k,h,x[c+15],B,1236535329),h=s(h,i,j,k,x[c+1],C,4129170786),k=s(k,h,i,j,x[c+6],D,3225465664),j=s(j,k,h,i,x[c+11],E,643717713),i=s(i,j,k,h,x[c+0],F,3921069994),h=s(h,i,j,k,x[c+5],C,3593408605),k=s(k,h,i,j,x[c+10],D,38016083),j=s(j,k,h,i,x[c+15],E,3634488961),i=s(i,j,k,h,x[c+4],F,3889429448),h=s(h,i,j,k,x[c+9],C,568446438),k=s(k,h,i,j,x[c+14],D,3275163606),j=s(j,k,h,i,x[c+3],E,4107603335),i=s(i,j,k,h,x[c+8],F,1163531501),h=s(h,i,j,k,x[c+13],C,2850285829),k=s(k,h,i,j,x[c+2],D,4243563512),j=s(j,k,h,i,x[c+7],E,1735328473),i=s(i,j,k,h,x[c+12],F,2368359562),h=t(h,i,j,k,x[c+5],G,4294588738),k=t(k,h,i,j,x[c+8],H,2272392833),j=t(j,k,h,i,x[c+11],I,1839030562),i=t(i,j,k,h,x[c+14],J,4259657740),h=t(h,i,j,k,x[c+1],G,2763975236),k=t(k,h,i,j,x[c+4],H,1272893353),j=t(j,k,h,i,x[c+7],I,4139469664),i=t(i,j,k,h,x[c+10],J,3200236656),h=t(h,i,j,k,x[c+13],G,681279174),k=t(k,h,i,j,x[c+0],H,3936430074),j=t(j,k,h,i,x[c+3],I,3572445317),i=t(i,j,k,h,x[c+6],J,76029189),h=t(h,i,j,k,x[c+9],G,3654602809),k=t(k,h,i,j,x[c+12],H,3873151461),j=t(j,k,h,i,x[c+15],I,530742520),i=t(i,j,k,h,x[c+2],J,3299628645),h=u(h,i,j,k,x[c+0],K,4096336452),k=u(k,h,i,j,x[c+7],L,1126891415),j=u(j,k,h,i,x[c+14],M,2878612391),i=u(i,j,k,h,x[c+5],N,4237533241),h=u(h,i,j,k,x[c+12],K,1700485571),k=u(k,h,i,j,x[c+3],L,2399980690),j=u(j,k,h,i,x[c+10],M,4293915773),i=u(i,j,k,h,x[c+1],N,2240044497),h=u(h,i,j,k,x[c+8],K,1873313359),k=u(k,h,i,j,x[c+15],L,4264355552),j=u(j,k,h,i,x[c+6],M,2734768916),i=u(i,j,k,h,x[c+13],N,1309151649),h=u(h,i,j,k,x[c+4],K,4149444226),k=u(k,h,i,j,x[c+11],L,3174756917),j=u(j,k,h,i,x[c+2],M,718787259),i=u(i,j,k,h,x[c+9],N,3951481745),h=m(h,d),i=m(i,e),j=m(j,f),k=m(k,g);var O=w(h)+w(i)+w(j)+w(k);return O.toLowerCase()}function number_format(a,b,c,d){var e=a,f=b;e=isFinite(+e)?+e:0,f=isFinite(+f)?Math.abs(f):0;var g,h,i="undefined"==typeof d?",":d,j="undefined"==typeof c?".":c,k=f>0?e.toFixed(f):Math.round(e).toFixed(f),l=Math.abs(e).toFixed(f);return l>=1e3?(g=l.split(/\D/),h=g[0].length%3||3,g[0]=k.slice(0,h+(0>e))+g[0].slice(h).replace(/(\d{3})/g,i+"$1"),k=g.join(j)):k=k.replace(".",j),k}function base64_encode(a){var b,c,d,e,f,g,h,i,j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",k=0,l=0,m="",n=[];if(!a)return a;do b=a.charCodeAt(k++),c=a.charCodeAt(k++),d=a.charCodeAt(k++),i=b<<16|c<<8|d,e=i>>18&63,f=i>>12&63,g=i>>6&63,h=63&i,n[l++]=j.charAt(e)+j.charAt(f)+j.charAt(g)+j.charAt(h);while(k>16&255,c=i>>8&255,d=255&i,64==g?n[l++]=String.fromCharCode(b):64==h?n[l++]=String.fromCharCode(b,c):n[l++]=String.fromCharCode(b,c,d);while(ke;e++)if(-1===c.indexOf(a.charAt(e))){a=a.substring(e);break}for(d=a.length,e=d-1;e>=0;e--)if(-1===c.indexOf(a.charAt(e))){a=a.substring(0,e+1);break}return-1===c.indexOf(a.charAt(0))?a:""}function strtr(a,b,c){var d="",e=0,f=0,g=0,h=0,i=!1,j="",k="",l="",m=[],n=[],o="",p=!1;if("object"==typeof b){i=this.ini_set("phpjs.strictForIn",!1),b=this.krsort(b),this.ini_set("phpjs.strictForIn",i);for(d in b)b.hasOwnProperty(d)&&(m.push(d),n.push(b[d]));b=m,c=n}for(g=a.length,h=b.length,j="string"==typeof b,k="string"==typeof c,e=0;g>e;e++){if(p=!1,j){for(l=a.charAt(e),f=0;h>f;f++)if(l==b.charAt(f)){p=!0;break}}else for(f=0;h>f;f++)if(a.substr(e,b[f].length)==b[f]){p=!0,e=e+b[f].length-1;break}o+=p?k?c.charAt(f):c[f]:a.charAt(e)}return o}function displayTab(a){tabAssinante=document.getElementById("ccentral"),tabVeiculo=document.getElementById("cveiculo"),tabSelA=document.getElementById("taba"),tabSelV=document.getElementById("tabv"),"assinante"==a?(tabAssinante.style.display="block",tabVeiculo.style.display="none",tabSelA.className="selected",tabSelV.className=""):(tabAssinante.style.display="none",tabVeiculo.style.display="block",tabSelA.className="",tabSelV.className="selected")}function uniq(a){var b=[];return a.forEach(function(a){b.indexOf(a)<0&&b.push(a)}),b}var ajax,dadosUsuario,idTimeout,qual,tCont=0,tTimeCont,tTimeMenu,tStatus=!1,tPause=!1;document.addEventListener("DOMContentLoaded",function(a){for(var b=document.querySelectorAll(".filterValidateRadius"),c=0;c0&&b-1 in a}function d(a,b,c){if(aa.isFunction(b))return aa.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return aa.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(ha.test(b))return aa.filter(b,a,c);b=aa.filter(b,a)}return aa.grep(a,function(a){return U.call(b,a)>=0!==c})}function e(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function f(a){var b=oa[a]={};return aa.each(a.match(na)||[],function(a,c){b[c]=!0}),b}function g(){$.removeEventListener("DOMContentLoaded",g,!1),a.removeEventListener("load",g,!1),aa.ready()}function h(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=aa.expando+Math.random()}function i(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(ua,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:ta.test(c)?aa.parseJSON(c):c}catch(e){}sa.set(a,b,c)}else c=void 0;return c}function j(){return!0}function k(){return!1}function l(){try{return $.activeElement}catch(a){}}function m(a,b){return aa.nodeName(a,"table")&&aa.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function n(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function o(a){var b=Ka.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function p(a,b){for(var c=0,d=a.length;d>c;c++)ra.set(a[c],"globalEval",!b||ra.get(b[c],"globalEval"))}function q(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(ra.hasData(a)&&(f=ra.access(a),g=ra.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)aa.event.add(b,e,j[e][c])}sa.hasData(a)&&(h=sa.access(a),i=aa.extend({},h),sa.set(b,i))}}function r(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&aa.nodeName(a,b)?aa.merge([a],c):c}function s(a,b){var c=b.nodeName.toLowerCase();"input"===c&&ya.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}function t(b,c){var d=aa(c.createElement(b)).appendTo(c.body),e=a.getDefaultComputedStyle?a.getDefaultComputedStyle(d[0]).display:aa.css(d[0],"display");return d.detach(),e}function u(a){var b=$,c=Oa[a];return c||(c=t(a,b),"none"!==c&&c||(Na=(Na||aa(""),c="absolute",d=parseInt(document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop,10)),this.mleft=parseInt(-1*(b.width/2+Number(g[3])),10),this.mtop=parseInt(-1*(b.height/2+Number(g[0])),10)+d,this.position=c,this}function e(a,b){var c=a.match(b),d=[],e=c.length;return e>1?(d[0]=c[0],d[1]=c[1],d[2]=2==e?c[0]:c[2],d[3]=4==e?c[3]:c[1]):d=[c,c,c,c],d}function f(){document.onkeydown=function(b){b=b||window.event;var c=b.keyCode||b.which;switch(c){case 13:return!1;case 27:a.fn.ceebox.closebox(),document.onkeydown=null;break;case 188:case 37:a("#cee_prev").trigger("click");break;case 190:case 39:a("#cee_next").trigger("click")}return!0}}function g(b,c,d){function e(b,e){var f,g=j[d.type].bgtop,h=g-2e3,i="px";f="prev"==b?[{left:0},"left"]:[{right:0},x="right"];var k=function(b){return a.extend({zIndex:105,width:j[d.type].w+i,height:j[d.type].h+i,position:"absolute",top:j[d.type].top,backgroundPosition:f[1]+" "+b+i},f[0])};a("").text(b).attr({id:"cee_"+b}).css(k(h)).hover(function(){a(this).css(k(g))},function(){a(this).css(k(h))}).one("click",function(b){b.preventDefault(),function(b,c,d){a("#cee_prev,#cee_next").unbind().click(function(){return!1}),document.onkeydown=null;var e=a("#cee_box").children(),f=e.length;e.fadeOut(d,function(){a(this).remove(),this==e[f-1]&&b.eq(c).trigger("click")})}(c,e,d.fadeOut)}).appendTo("#cee_box")}var f=d.height,g=d.width,h=d.titleHeight,i=d.padding,j={image:{w:parseInt(g/2,10),h:f-h-2*i,top:i,bgtop:(f-h-2*i)/2},video:{w:60,h:80,top:parseInt((f-h-10-2*i)/2,10),bgtop:24}};j.html=j.video,b.prevId>=0&&e("prev",b.prevId),b.nextId&&e("next",b.nextId),a("#cee_title").append("
Item "+(b.gNum+1)+" of "+b.gLen+"
")}function h(a,b){return a&&b>a||!b?a:b}function i(a){return"function"==typeof a}function j(a){var b=a.length;return b>1?a[b-1]:a}a.ceebox={version:"2.1.5"},a.fn.ceebox=function(c){c=a.extend({selector:a(this).selector},a.fn.ceebox.defaults,c);var d=this,e=a(this).selector;return c.videoJSON?a.getJSON(c.videoJSON,function(f){a.extend(a.fn.ceebox.videos,f),b(d,c,e)}):b(d,c,e),this},a.fn.ceebox.defaults={html:!0,image:!0,video:!0,modal:!1,titles:!0,htmlGallery:!0,imageGallery:!0,videoGallery:!0,videoWidth:!1,videoHeight:!1,videoRatio:"16:9",htmlWidth:!1,htmlHeight:!1,htmlRatio:!1,imageWidth:!1,imageHeight:!1,animSpeed:"normal",easing:"swing",fadeOut:400,fadeIn:400,overlayColor:"#000",overlayOpacity:.8,boxColor:"",textColor:"",borderColor:"",borderWidth:"3px",padding:15,margin:150,onload:null,unload:null,videoJSON:null,iPhoneRedirect:!0},a.fn.ceebox.ratios={"4:3":1.333,"3:2":1.5,"16:9":1.778,"1:1":1,square:1},a.fn.ceebox.relMatch={width:/(?:width:)([0-9]+)/i,height:/(?:height:)([0-9]+)/i,ratio:/(?:ratio:)([0-9\.:]+)/i,modal:/modal:true/i,nonmodal:/modal:false/i,videoSrc:/(?:videoSrc:)(http:[\/\-\._0-9a-zA-Z:]+)/i,videoId:/(?:videoId:)([\-\._0-9a-zA-Z:]+)/i},a.fn.ceebox.loader="
",a.fn.ceebox.videos={base:{param:{wmode:"transparent",allowFullScreen:"true",allowScriptAccess:"always"},flashvars:{autoplay:!0}},facebook:{siteRgx:/facebook\.com\/video/i,idRgx:/(?:v=)([a-zA-Z0-9_]+)/i,src:"http://www.facebook.com/v/[id]"},youtube:{siteRgx:/youtube\.com\/watch/i,idRgx:/(?:v=)([a-zA-Z0-9_\-]+)/i,src:"http://www.youtube.com/v/[id]&hl=en&fs=1&autoplay=1"},metacafe:{siteRgx:/metacafe\.com\/watch/i,idRgx:/(?:watch\/)([a-zA-Z0-9_]+)/i,src:"http://www.metacafe.com/fplayer/[id]/.swf"},google:{siteRgx:/google\.com\/videoplay/i,idRgx:/(?:id=)([a-zA-Z0-9_\-]+)/i,src:"http://video.google.com/googleplayer.swf?docId=[id]&hl=en&fs=true",flashvars:{playerMode:"normal",fs:!0}},spike:{siteRgx:/spike\.com\/video|ifilm\.com\/video/i,idRgx:/(?:\/)([0-9]+)/i,src:"http://www.spike.com/efp",flashvars:{flvbaseclip:"[id]"}},vimeo:{siteRgx:/vimeo\.com\/[0-9]+/i,idRgx:/(?:\.com\/)([a-zA-Z0-9_]+)/i,src:"http://www.vimeo.com/moogaloop.swf?clip_id=[id]&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1"},dailymotion:{siteRgx:/dailymotion\.com\/video/i,idRgx:/(?:video\/)([a-zA-Z0-9_]+)/i,src:"http://www.dailymotion.com/swf/[id]&related=0&autoplay=1"},cnn:{siteRgx:/cnn\.com\/video/i,idRgx:/(?:\?\/video\/)([a-zA-Z0-9_\/\.]+)/i,src:"http://i.cdn.turner.com/cnn/.element/apps/cvp/3.0/swf/cnn_416x234_embed.swf?context=embed&videoId=[id]",width:416,height:374}},a.fn.ceebox.overlay=function(b){if(b=a.extend({width:60,height:30,type:"html"},a.fn.ceebox.defaults,b),0===a("#cee_overlay").size()&&a("
").css({opacity:b.overlayOpacity,position:"absolute",top:0,left:0,backgroundColor:b.overlayColor,width:"100%",height:a(document).height(),zIndex:99999}).appendTo(a("body")),0===a("#cee_box").size()){var c=d(b),e={position:c.position,zIndex:999999,top:"50%",left:"50%",height:b.height+"px",width:b.width+"px",marginLeft:c.mleft+"px",marginTop:c.mtop+"px",opacity:0,borderWidth:b.borderWidth,borderColor:b.borderColor,backgroundColor:b.boxColor,color:b.textColor};a("
").css(e).appendTo("body").animate({opacity:1},b.animSpeed,function(){a("#cee_overlay").addClass("cee_close")})}a("#cee_box").removeClass().addClass("cee_"+b.type),0===a("#cee_load").size()&&a(a.fn.ceebox.loader).appendTo("body"),a("#cee_load").show("fast").animate({opacity:1},"fast")},a.fn.ceebox.popup=function(b,h){var i=c(h.margin);h=a.extend({width:i.width,height:i.height,modal:!1,type:"html",onload:null},a.fn.ceebox.defaults,h);var j,l;if(a(b).is("a,area,input")&&("html"==h.type||"image"==h.type||"video"==h.type)){h.gallery&&(l=a(h.selector).eq(h.gallery.parentId).find("a[href],area[href],input[href]")),n[h.type].prototype=new m(b,h);var o=new n[h.type];b=o.content,h.action=o.action,h.modal=o.modal,h.titles?(h.titleHeight=a(o.titlebox).contents().contents().wrap("
").parent().attr("id","ceetitletest").css({position:"absolute",top:"-300px",width:o.width+"px"}).appendTo("body").height(),a("#ceetitletest").remove(),h.titleHeight=h.titleHeight>=10?h.titleHeight+20:30):h.titleHeight=0,h.width=o.width+2*h.padding,h.height=o.height+h.titleHeight+2*h.padding}a.fn.ceebox.overlay(h),k.action=h.action,k.onload=h.onload,k.unload=h.unload;var p=d(h),q={marginLeft:p.mleft,marginTop:p.mtop,width:h.width+"px",height:h.height+"px",borderWidth:h.borderWidth};if(h.borderColor){var r=/#[1-90a-f]+/gi,s=e(h.borderColor,r);q=a.extend(q,{borderTopColor:s[0],borderRightColor:s[1],borderBottomColor:s[2],borderLeftColor:s[3]})}q=h.textColor?a.extend(q,{color:h.textColor}):q,q=h.boxColor?a.extend(q,{backgroundColor:h.boxColor}):q,a("#cee_box").animate(q,h.animSpeed,h.easing,function(){var c=a(this).append(b).children().hide(),d=c.length,e=!0;c.fadeIn(h.fadeIn,function(){a(this).is("#cee_iframeContent")&&(e=!1),e&&this==c[d-1]&&a.fn.ceebox.onload()}),h.modal===!0?a("#cee_overlay").removeClass("cee_close"):(a("close").prependTo("#cee_box"),h.gallery&&g(h.gallery,l,h),f(j,l,h.fadeOut))})},a.fn.ceebox.closebox=function(b,c){b=b||400,a("#cee_box").fadeOut(b),a("#cee_overlay").fadeOut("number"==typeof b?2*b:"slow",function(){a("#cee_box,#cee_overlay,#cee_HideSelect,#cee_load").unbind().trigger("unload").remove(),i(c)?c():i(k.unload)&&k.unload(),k.unload=null}),document.onkeydown=null},a.fn.ceebox.onload=function(b){a("#cee_load").hide(300).fadeOut(600,function(){a(this).remove()}),i(k.action)&&(k.action(),k.action=null),i(k.onload)&&(k.onload(),k.onload=null)};var k={},l=function(b,c,d,e){var f,g=[],h=[],i=0;f=a(b).is("[href]")?a(b):a(b).find("[href]");var j={image:function(a,b){return b&&b.match(/\bimage\b/i)?!0:a.match(/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/i)||!1},video:function(a,b){return b&&b.match(/\bvideo\b/i)?!0:a.match(k.vidRegex)||!1},html:function(a){return!0}};f.length;f.each(function(b){var c=this,e=a.metadata?a(c).metadata():!1,f=e?a.extend({},d,e):d;a.each(j,function(d){if(j[d](a(c).attr("href"),a(c).attr("rel"))&&f[d]){var e=!1;return f[d+"Gallery"]===!0&&(h[h.length]=b,e=!0),g[g.length]={linkObj:c,type:d,gallery:e,linkOpts:f},!1}})});var l=h.length;a.each(g,function(d){if(g[d].gallery){var e={parentId:c,gNum:i,gLen:l};i>0&&(e.prevId=h[i-1]),l-1>i&&(e.nextId=h[i+1]),i++}!a.support.opacity&&a(b).is("map")&&a(g[d].linkObj).click(function(a){a.preventDefault()}),a.data(g[d].linkObj,"ceebox",{type:g[d].type,opts:g[d].linkOpts,gallery:e})})},m=function(b,d){var e=d[d.type+"Width"],f=d[d.type+"Height"],g=d[d.type+"Ratio"]||e/f,i=a(b).attr("rel");if(i&&""!==i){var k={};a.each(a.fn.ceebox.relMatch,function(a,b){k[a]=b.exec(i)}),k.modal&&(d.modal=!0),k.nonmodal&&(d.modal=!1),k.width&&(e=Number(j(k.width))),k.height&&(f=Number(j(k.height))),k.ratio&&(g=j(k.ratio),g=Number(g)?Number(g):String(g)),k.videoSrc&&(this.videoSrc=String(j(k.videoSrc))),k.videoId&&(this.videoId=String(j(k.videoId)))}var l=c(d.margin);e=h(e,l.width),f=h(f,l.height),g&&(Number(g)||(g=a.fn.ceebox.ratios[g]?Number(a.fn.ceebox.ratios[g]):1),e/f>g&&(e=parseInt(f*g,10)),g>e/f&&(f=parseInt(e/g,10))),this.modal=d.modal,this.href=a(b).attr("href"),this.title=a(b).attr("title")||b.t||"",this.titlebox=d.titles?"

"+this.title+"

":"",this.width=e,this.height=f,this.rel=i,this.iPhoneRedirect=d.iPhoneRedirect},n={image:function(){this.content=""+this.title+""+this.titlebox},video:function(){var b="",c=this,d=function(){var b=this,d=c.videoId;return b.flashvars=b.param={},b.src=c.videoSrc||c.href,b.width=c.width,b.height=c.height,a.each(a.fn.ceebox.videos,function(e,f){return f.siteRgx&&"string"!=typeof f.siteRgx&&f.siteRgx.test(c.href)?(f.idRgx&&(f.idRgx=new RegExp(f.idRgx),d=String(j(f.idRgx.exec(c.href)))),b.src=f.src?f.src.replace("[id]",d):b.src,f.flashvars&&a.each(f.flashvars,function(a,c){"string"==typeof c&&(b.flashvars[a]=c.replace("[id]",d))}),f.param&&a.each(f.param,function(a,c){"string"==typeof c&&(b.param[a]=c.replace("[id]",d))}),b.width=f.width||b.width,b.height=f.height||b.height,void(b.site=e)):void 0}),b}();if(a.flash.hasVersion(8))this.width=d.width,this.height=d.height,this.action=function(){a("#cee_vid").flash({swf:d.src,params:a.extend(a.fn.ceebox.videos.base.param,d.param),flashvars:a.extend(a.fn.ceebox.videos.base.flashvars,d.flashvars),width:d.width,height:d.height})};else if(this.width=400,this.height=200,k.userAgent.match(/iPhone/i)&&this.iPhoneRedirect||k.userAgent.match(/iPod/i)&&this.iPhoneRedirect){var e=this.href;this.action=function(){a.fn.ceebox.closebox(400,function(){window.location=e})}}else d.site=d.site||"SWF file",b="

Adobe Flash 8 or higher is required to view this movie. You can either:

";this.content="
"+b+"
"+this.titlebox},html:function(){var b=this.href,c=this.rel,d=[b.match(/[a-zA-Z0-9_\.]+\.[a-zA-Z]{2,4}/i),b.match(/^http:+/),c?c.match(/^iframe/):!1];if(document.domain==d[0]&&d[1]&&!d[2]||!d[1]&&!d[2]){var e,f=(e=b.match(/#[a-zA-Z0-9_\-]+/))?String(b.split("#")[0]+" "+e):b;this.action=function(){a("#cee_ajax").load(f)},this.content=this.titlebox+"
"}else a("#cee_iframe").remove(),this.content=this.titlebox+""}}}(jQuery);